package com.example.messagemodule.adapter;

import android.graphics.Color;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.messagemodule.R;
import com.example.messagemodule.entity.SelectEntity;

import java.util.ArrayList;
import java.util.List;

public class CarefulAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    public CarefulAdapter(@Nullable List<String> data) {
        super(R.layout.item_attention, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {
        helper.setTextColor(R.id.item_attentionList, Color.parseColor("#E34889"));
        helper.setBackgroundRes(R.id.item_attentionList,R.drawable.item_careful_bg);
        helper.setText(R.id.item_attentionList, item);
    }
}
